using System;
using System.Collections;
using System.Collections.Generic;

using Ecreate.Popedom;

namespace Ecreate.Popedom
{
    public partial class tMenu : BusinessBase<string>
    {
        #region Declarations

		private string _menucaption = null;
		private string _menuurl = null;

        public virtual IList<tMenu> Menus { get; set; }
        public virtual tMenu Menu { get; set; }

        
 
		private long? _menuorder = null;
		private long? _menuactive = null;


        public virtual IList<tGroupassign> Assigns { get; set; }


		#endregion

        #region Constructors

        public tMenu() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_menucaption);
			sb.Append(_menuurl);
			sb.Append(_menuorder);
			sb.Append(_menuactive);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Menucaption
        {
            get { return _menucaption; }
			set
			{

				_menucaption = value;

			}
        }

		
		public virtual string Menuurl
        {
            get { return _menuurl; }
			set
			{
				_menuurl = value;
			}
        }

		public virtual long? Menuorder
        {
            get { return _menuorder; }
			set
			{

				_menuorder = value;

			}
        }
		partial void OnMenuorderChanging();
		partial void OnMenuorderChanged();
		
		public virtual long? Menuactive
        {
            get { return _menuactive; }
			set
			{

				_menuactive = value;
			}
        }

		
        #endregion
    }
}
